CheckAndGetLifeZone() 개인적인 메소드

private CheckAndGetLifeZone ( Player p, Command cmd ) : bool
p Player
cmd Command
리턴 bool
예제 #1
0
        private static LifeHandler GetCheckedLifeHandler(Player p, Command cmd)
        {
            LifeHandler handler = new LifeHandler();

            if (!handler.CheckAndGetLifeZone(p, cmd))
            {
                return(null);
            }
            if (null == handler._life)
            {
                p.Message("&WLife " + handler._name + " does not exist.");
                return(null);
            }
            return(handler);
        }
예제 #2
0
        private static void OnCreate(Player p, Command cmd)
        {
            LifeHandler handler = new LifeHandler();

            if (!handler.CheckAndGetLifeZone(p, cmd))
            {
                return;
            }
            if (!handler.CheckWorldPermissions(p))
            {
                return;
            }
            if (null != handler._life)
            {
                p.Message("&WLife with such name exists already, choose another");
                return;
            }

            p.SelectionStart(2, handler.LifeCreateCallback, null, Permission.DrawAdvanced);
            p.MessageNow("Select life zone: place/remove a block or type /Mark to use your location.");
        }
예제 #3
0
        private static void OnCreate(Player p, Command cmd)
        {
            LifeHandler handler=new LifeHandler();
            if (!handler.CheckAndGetLifeZone(p, cmd))
                return;
            if (!handler.CheckWorldPermissions(p))
                return;
            if (null!=handler._life)
            {
                p.Message("&WLife with such name exists already, choose another");
                return;
            }

            p.SelectionStart(2, handler.LifeCreateCallback, null, Permission.DrawAdvanced);
            p.MessageNow("Select life zone: place/remove a block or type /Mark to use your location.");
        }
예제 #4
0
 private static LifeHandler GetCheckedLifeHandler(Player p, Command cmd)
 {
     LifeHandler handler = new LifeHandler();
     if (!handler.CheckAndGetLifeZone(p, cmd))
         return null;
     if (null == handler._life)
     {
         p.Message("&WLife " + handler._name + " does not exist.");
         return null;
     }
     return handler;
 }