Skip to content

How to change default permissions without a permissions plugin

Mose edited this page Oct 27, 2022 · 1 revision

This tutorial will tell you how to change the default permissions without a permissions plugin. This is technically a hack, however can work with all plugins (not just ships)

Requirements

Ships

This requires you to be using the stand alone (if you downloaded Ships from somewhere other then Github, its likely to be stand alone) as well as the Bukkit edition (noted with a -b in the download name)

Server

if you use a dedicated host for your server, your host must allow uploading your own plugin files

Programs

You will need a program that can open up .zip files. If your on Windows 7+ you can use the built in zip extractor, however I would recommend something else

Recommendations:

| Name | Platform | | WinRar | Windows | | 7Zip | Windows, Linux, Mac |

Steps

Extract file

The first thing you need to do is extract the plugin file to show the files that make up the plugin.

Windows Zip

To do this on Windows Zip (built into Windows 7+) is

  1. click the view tab at the top of explorer
  2. tick the box to show file extensions
  3. rename the plugin file to ShipsBukkit.zip
  4. Double click the renamed file
  5. At the top of explorer, click the extract button
  6. Extract it to somewhere where you will find it

7Zip

To do this on 7Zip is

  1. Open 7Zip
  2. Go to the plugin file
  3. open the plugin file

WinRar

To do this on WinRar is

  1. Right click the plugin file
  2. Click Open with (If you are on Windows 11+, you may need to scroll down to the bottom and select show more options)
  3. Select WinRar

Open plugin.yml

Simply open the plugin.yml file. If you are using a proper zip extractor such as WinRar or 7Zip, you can just click the plugin.yml file directly in the program

Modify the file

The file may seem confusing, however the plugin.yml file is used to tell CraftBukkit how to boot the plugin as well as all the defaults. If you scroll down to the bottom then add the following

permissions:
  ships.make.ships.airship:
    default: true
  eco.move.own.ships.airship:
    default: true

The permission node (indented with 2 spaces) is the key that Ships tells Bukkit what it wants. the default value is who has permission if there is no permissions plugin.

You can find all the Ships permissions nodes here https://dev.bukkit.org/projects/ships/pages/ships-6-page

And the default possible values are as follows

value description
true Anyone who joins the server will have the permission node
op Only players who are OP will gain the permission node
not op Only those who are not OP will gain the permission node
false Anyone who has permission level 1+ will gain the permission node (not typically used)

Save the plugin.yml

Simply save the plugin yml

Build the plugin file back

If you use a dedicated zip extractor then this will be done when you save the plugin.yml. So you can just close the program and move to the next step

Windows Zip Extractor

  • Highlight all the files and folders (including the plugin.yml)
  • right click one of the highlighted files
  • Select send to (Windows 11+ users may need to click Show more options)
  • Select Compressed Zip
  • A new file will be created
  • Rename that file to ShipsBukkit.jar

Upload plugin to your server

Title says it all