Package org.anjocaido.groupmanager.events

Examples of org.anjocaido.groupmanager.events.GMUserEvent


      try {
        if (event instanceof GMUserEvent) {
         
          if (PermissionEventEnums.GMUser_Action.valueOf(event.getEventName()) != null) {
            GMUserEvent UserEvent = (GMUserEvent) event;
            try {
              resident = TownyUniverse.getDataSource().getResident(UserEvent.getUserName());
              player = plugin.getServer().getPlayerExact(resident.getName());
              if (player != null) {
                //setup default modes for this player.
                String[] modes = getPlayerPermissionStringNode(player.getName(), PermissionNodes.TOWNY_DEFAULT_MODES.getNode()).split(",");
                plugin.setPlayerMode(player, modes, false);
View Full Code Here

TOP

Related Classes of org.anjocaido.groupmanager.events.GMUserEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.