1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Need help with iProtector Plugin

Discussion in 'Plugin Help' started by WinterBuild7074, Apr 14, 2017.

  1. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    I need some help with my iProtector Plugin:

    My problem is, that it only lets me change the settings for unprotected areas.

    Settings for unprotected areas: editing allowed, player can do PvP/get hurt, touch-protection is off.
    Settings I want for protected areas: no editing, PvP is off (players cannot get hurt), touch-protection is off.

    The only thing I want to change is: Players cannot do PvP or get hurt in protected areas.
    That means: God: true
     
  2. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    Then just simply use the command...
     
  3. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    What command?
     
  4. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    Anyone help me? I don't know which command you mean and how to use it.
     
  5. PainTR

    PainTR Creeper

    Messages:
    4
    GitHub:
    paintr
    You should use that command like this: /area flag <areaname> god
    For turn off, use same command again
     
  6. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    Is that for protected or unprotected areas? Because the configs and the codes are only for unprotected areas.
     
  7. PainTR

    PainTR Creeper

    Messages:
    4
    GitHub:
    paintr
    only for protected areas but if you use /area flag <arename> edit, you can turn off protection for selected area
     
  8. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    That means the command to turn on "god" mode in protected areas will be: /area flag <areaname> god, right?
     
  9. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Why not test it yourself?
     
  10. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    I did, but it didn't work. I still got "hurt".
    I think thise settings are really only for unprotected areas. Maybe I can edit the .php file and change settings for protected areas?
     
  11. MK500

    MK500 Slime

    Messages:
    77
    GitHub:
    markkrueg
  12. Matthew

    Matthew Baby Zombie

    Messages:
    167
    GitHub:
    matthww
    If you don't want to get hurt:
    god: true
     
  13. Matthew

    Matthew Baby Zombie

    Messages:
    167
    GitHub:
    matthww
    Make sure you aren't overwriting area's with eachother this sometimes bugs it
     
  14. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    I did, but it only works for unprotected areas. I looked at the areas.json, the config.yml, but only settings for unprotected areas. I think the only thing I can do is edit the .php.
     
  15. Matthew

    Matthew Baby Zombie

    Messages:
    167
    GitHub:
    matthww
    Did you create an area? You are probably editing the config.yml which is for unprotected areas.
     
  16. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    Yes, I created an area.
     
  17. Matthew

    Matthew Baby Zombie

    Messages:
    167
    GitHub:
    matthww
    What's your server ip? So I can take a look
     
  18. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    Um, I'll try to explain first.
    I have a world called 'Farming'. There's a drop-party platform there. I tried editing the config.yml, but it says that those settings are only for unprotected areas, the same in the areas.json, I tested it all. All the settings I change in the areas.json or the config, are only (working) for unprotected areas.

    The normal settings (cannot change them in config) for protected areas are: no block editing, god is false (players can get hurt), touch-protection is off.

    I tried running this command too: /area flag Farming god
    OK, it set the area's mode to god ON. Now I tried testing if I can get hurt in my Farming world with my testing account (not OP). I went up the drop-party platform (spawn and drop-party platform all protected), jumped off, but still I get hurt – even if I set god to true on all configs or files I can find (EXCEPT the .php).
    Maybe it's the problem in the .php? Maybe try editing it? Because if the PHP can turn on editing-protection in protected areas, maybe it could turn on god mode too? Shall I send the whole code of the PHP and see which part of the code is turning on editing-protection? Then I'll try turning on god mode too, the same as it was turning on editing-protection...
     
  19. Matthew

    Matthew Baby Zombie

    Messages:
    167
    GitHub:
    matthww
    And you are sure that the claimed area is covering the whole platform?
     
  20. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    Must be, because my test account cannot break the anything from the drop-party platform.
    i can remember I started from bedrock up to the highest point I can place blocks.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.