[REQ] Use certain commands only at night or day

Discussion in 'Archived: Plugin Requests' started by Aricus, Aug 4, 2011.

  1. Offline


    I want to make it that certain users/groups are able to only use certain commands at either night or day, depending on their permissions file. I don't think this will be that difficult to code I just have no idea how to do it. So for instance, I can make it that the /tp command only works for the default group, during the day. Or I can make it that the OP group can only use the /give command at night, etc

    (Those are stupid examples but hopefully you get what I mean)
  2. Offline


    well OP has every permission if no permission plugins are installed, but the point is obvious enough
  3. Offline


    probably needs something like
    if (Bukkit.getWorld("worldname").getTime() >= 0 && Bukkit.getWorld("worldname").getTime() <= 12000) {
    sender.allowCommand("allowed command here");
    return true;
    } else {
    sender.disallowCommand("disallowed command here");
    sender.sendMessage("this command can only be used at daytime!");
    return true;
  4. Offline


    That looks great but I haven't ever made a bukkit plugin. Can someone take what Stelar put down and turn it into a full plugin?
  5. Offline


    either bukkit or permissions needs to implement it probably...

    send a request to a administrator or sumething (@dinnerbone @lukegb @evilseph)

Share This Page