Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

OpKick

Comments in 'Plugin Development' started by asters, May 13, 2016.

  1. asters
    Offline

    asters Active Member

    Joined:
    Jul 2, 2015
    Posts:
    52
    Minecraft User:
    aster
    I wanna a plugin who will kick auto all ops from game, with onjoin event!!!
    If player is Op = Kick!!!

    I really need it, well, im trying to learn pocketmine Api, if i dont succes my servers will be closed forever!!!

    Is just that forceOP users are more active than before :0
  2. Muqsit
    Offline

    Muqsit Active Member

    Joined:
    Sep 9, 2015
    Posts:
    175
    Minecraft User:
    Muqsit
    PHP:
    if($player->isOp()){
    $player->kick("You were kicked because you had OP!"false);
    }
  3. ImSilencer
    Offline

    ImSilencer New Member

    Joined:
    Feb 5, 2016
    Posts:
    13
    Minecraft User:
    ImSilencer
    lol OpKick, not a bad idea. Why not manage op at file op.txt? You can also delete the strange or useless ops in there or remove op permissions at PurePerm's Config.yml
  4. BlubberBoy333
    Offline

    BlubberBoy333 Active Member

    Joined:
    Aug 31, 2014
    Posts:
    177
    Minecraft User:
    Blubberboy333
    PHP:
    foreach($this->getServer()->getPlayers() as $i){
        if(
    $i->isOp(true){
            
    $i->kick(/*This might need to have parameters...*/);
        }
    }
  5. Extreme_Heat
    Offline

    Extreme_Heat Active Member

    Joined:
    Apr 19, 2016
    Posts:
    76
    Minecraft User:
    Extreme_Heat
    Oh no!!!

    Is there any other excuse you can come up with? "Force op users are more active than before"?

    If the server has an exploit that can op users (which there are none known at the time of writing) then you aught to be patching that exploit and not using workarounds.

    This sort of thing request looks like there's malicious intent involved.
    Last edited: May 13, 2016
  6. ImSilencer
    Offline

    ImSilencer New Member

    Joined:
    Feb 5, 2016
    Posts:
    13
    Minecraft User:
    ImSilencer
    If ForceOp were active in MCPE Server, the security would be getting down and lots of servers would be crashed :(
  7. Muqsit
    Offline

    Muqsit Active Member

    Joined:
    Sep 9, 2015
    Posts:
    175
    Minecraft User:
    Muqsit
    USE PlanB WITH TimeCommander! BOOM!
    Survingo likes this.
  8. Extreme_Heat
    Offline

    Extreme_Heat Active Member

    Joined:
    Apr 19, 2016
    Posts:
    76
    Minecraft User:
    Extreme_Heat
    Yet that does not address the point that I am making. Kicking ops is bad because:

    * It does not address the hypothetical underlying issue you're talking about. It's like saying to not use admin accounts on your computer because someone will remotely hack into your computer and get administrative access on it.
    * It interferes with the expected PocketMine behavior and other plugins that depend on operators.
    * This sort of action can easily be abused for malicious purposes as previously explained.

    If someone is gaining control over your server and your solution is to block ops, that is a lowsy and dumb solution. What's to stop people from deleting your worlds, or even executing console commands? These are all possible with the use of RCON and breach of credentials.
  9. asters
    Offline

    asters Active Member

    Joined:
    Jul 2, 2015
    Posts:
    52
    Minecraft User:
    aster
    Rcon is disambled , and i was hacked even on a vanilla pocketmine-mp server in past!! So many players had op -.-'
    Im using perms for managing admins , nobody needs OP!!! So rude. -.-. Maybe u sell hack op and scared to lose $$

    And thx for code, you are so helpfull :3
  10. asters
    Offline

    asters Active Member

    Joined:
    Jul 2, 2015
    Posts:
    52
    Minecraft User:
    aster
    Hi!! I need the plugin, or just the .php file, i tryed and didnt work T.T , i know a little php, but i know 0 about plugins i only edit lines T.T , i wanna to always check if a player is op!! And to kick him if is!!! Please :D, i know i ask too much but i dont wanna close my servers T.T
    HotFireyDeath likes this.
  11. HotFireyDeath
    Offline

    HotFireyDeath Notable Member Plugin Developer

    Joined:
    Mar 19, 2015
    Posts:
    328
    Plugins:
    1
    Minecraft User:
    HotFireyDeath
    Here is a plugin.
    Also, since this thread is more like a request, please move your thread to:
    https://forums.pocketmine.net/forums/requests/

    Attached Files:

    Last edited: May 13, 2016
    asters likes this.
  12. amiremad
    Offline

    amiremad Active Member

    Joined:
    Sep 8, 2015
    Posts:
    192
    Minecraft User:
    amir107
    you will kick your self too because you are op if you want to manager already ops you can use this plugins to setpermissions to a player or a op to disable one of his powers

    http://github.com/amiroemad/op-manager
    Survingo likes this.
  13. asters
    Offline

    asters Active Member

    Joined:
    Jul 2, 2015
    Posts:
    52
    Minecraft User:
    aster
    I dont use ops!! This is why i need kick OP, becouse ops can break portals by mystake, but thx so much, and i play vainglory too :3
  14. asters
    Offline

    asters Active Member

    Joined:
    Jul 2, 2015
    Posts:
    52
    Minecraft User:
    aster
    Strange is not working!! T.T
  15. asters
    Offline

    asters Active Member

    Joined:
    Jul 2, 2015
    Posts:
    52
    Minecraft User:
    aster
    I put the plugin, it show in /plugins, but is no working, i op myself in game, run commands, and no kick!!!

    I dont know how to move my thread :D
  16. HotFireyDeath
    Offline

    HotFireyDeath Notable Member Plugin Developer

    Joined:
    Mar 19, 2015
    Posts:
    328
    Plugins:
    1
    Minecraft User:
    HotFireyDeath
    Op yourself, then disconnect and try to join again.
  17. asters
    Offline

    asters Active Member

    Joined:
    Jul 2, 2015
    Posts:
    52
    Minecraft User:
    aster
    yEs, is onjoin event, i wanna onmove or at least onbreak!! If he is oped in game he can bypass this :D!!!
    Or to check every 10 seconds if a op is online and kick :D
  18. asters
    Offline

    asters Active Member

    Joined:
    Jul 2, 2015
    Posts:
    52
    Minecraft User:
    aster
    Sorry for double post, i just wanna to say!!! Thx for helping :3 !!!!
    is hard to check and kick op every 5-10 seconds? :D

    Your op manager is awesome too, but you need to add more commands to block!!!
    Even the perm from iprotector were ops can break claimed area and perm from myplot so ops cant break plot!!!
    Last edited: May 15, 2016
  19. Survingo
    Offline

    Survingo Active Member

    Joined:
    Dec 6, 2015
    Posts:
    221

    Attached Files:

    asters and HotFireyDeath like this.
  20. Muqsit
    Offline

    Muqsit Active Member

    Joined:
    Sep 9, 2015
    Posts:
    175
    Minecraft User:
    Muqsit
    That could lag the server. scheduleRepeatingTask every 4s ;-;

Share This Page

Advertisement