Package com.kellerkindt.scs.internals

Examples of com.kellerkindt.scs.internals.Todo


       
        if (amount < 0)
            throw new MissingOrIncorrectArgumentException ();

        Messaging.send  (player, next);
        scs.addTodo    (player, new Todo (player, Type.GET_ITEMS, null, amount, null));
       
        return true;
    }
View Full Code Here


    public boolean execute() throws MissingOrIncorrectArgumentException, InsufficientPermissionException {
        if(errorCheck())
            return true;
       
        Messaging.send(player, next);
        scs.addTodo(player, new Todo(player, Type.REMOVE, null, 0, null));
       
        return true;
    }
View Full Code Here

        DisplayShop  shop  = new DisplayShop(UUID.randomUUID(), player.getName(), null, is.clone());
       
        shop.setAmount  (0);
        shop.setPrice  (0);
       
        scs.addTodo(player, new Todo(player, Type.CREATE, shop, 0, null));
       
        return true;
    }
View Full Code Here

       
        if (price < 0)
            throw new MissingOrIncorrectArgumentException();
       
        Messaging.send(player, next);
        scs.addTodo(player, new Todo (player, Type.SET_PRICE, null, price, null));
       
        return true;
    }
View Full Code Here

  public boolean execute() throws MissingOrIncorrectArgumentException, InsufficientPermissionException {
    if (errorCheck())
      return true;
   
    Messaging.send  (player, next);
    scs.addTodo    (player, new Todo(player, Type.DESTROY, null, 0, null));
   
    return true;
  }
View Full Code Here

        shop.setAmount    (amount);
        shop.setUnlimited  (unlimited);
        shop.setPrice    (price);

        scs.msgPlayer(player, next);
        scs.addTodo(player, new Todo (player, Type.CREATE, shop, amount, null));
       
        return true;
    }
View Full Code Here

       
        if (amount < 0)
            throw new MissingOrIncorrectArgumentException ();

        Messaging.send(player, next);
        scs.addTodo(player, new Todo (player, Type.ADD_ITEMS, null, amount, null));
        return true;
    }
View Full Code Here

      type = Type.REMOVE_MEMBER;
   
    if (type == null)
      throw new MissingOrIncorrectArgumentException();
   
    Todo  todo  = new Todo(player, type, null, 0, args[2]);
    scs.addTodo(this.player, todo);
   
    Messaging.send(player, Term.NEXT.get());
   
    return true;
View Full Code Here

   
    Action      action    = pie.getAction();
    Player      player    = pie.getPlayer();
    Block      block     = pie.getClickedBlock();

    Todo      todo    = scs.removeTodo(player);
    Shop       shopEvent  = scs.getShopHandler().getShop(pie.getClickedBlock());
    Shop      shopTodo  = todo != null ? todo.Shop : null;
    ShowCaseEvent  event    = null;
    String      msgSuccess  = null;
   
View Full Code Here

        shop.setAmount    (amount);
        shop.setUnlimited  (unlimited);
        shop.setPrice    (price);

        scs.msgPlayer(player, next);
        scs.addTodo(player, new Todo (player, Type.CREATE, shop, 0, null));

        return true;
  }
View Full Code Here

TOP

Related Classes of com.kellerkindt.scs.internals.Todo

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.