Skip to content

Commit 91bdba5

Browse files
committed
Basic standards
1 parent 9b0f513 commit 91bdba5

File tree

1 file changed

+43
-3
lines changed

1 file changed

+43
-3
lines changed

README.md

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,48 @@ Take a look at the `Issues` page to get started! Make sure to follow the code st
1515

1616
# Standards
1717

18-
Coming soon!
18+
The standards for Permissify's code are really simple.
1919

20-
# Why does this exist?
20+
Make sure things that will be used between the different implementations are in the API
21+
Make sure messages & permissions are in the constants file.
22+
Use your brain...
2123

22-
Because someone, not naming names (*cough* Innectic *cough*), hates every existing plugin on the planet for some reason.
24+
And then all of the following stuff:
25+
26+
### Indention is bad, avoid it.
27+
#### Don't:
28+
29+
```java
30+
if (player.hasPermision("potato.salad")) {
31+
if (player.getName().equals("PotatoMemes")) {
32+
player.sendMessage("Wow, you're cool!");
33+
}
34+
}
35+
```
36+
37+
#### Do:
38+
39+
```java
40+
if (!player.hasPermission("potato.salad")) return;
41+
if (!player.getName().equals("PotatoMemes")) return;
42+
player.sendMessage("Wow, you're cool!");
43+
```
44+
45+
### Put `{`, `(` and similar on the same line
46+
47+
#### Don't
48+
```java
49+
50+
public void things()
51+
{
52+
// stuff
53+
}
54+
```
55+
56+
#### Do:
57+
```java
58+
59+
public void things() {
60+
// stuff
61+
}
62+
```

0 commit comments

Comments
 (0)