Skip to content

Commit

Permalink
[ci-skip] update contributing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Apr 17, 2024
1 parent 94c06cb commit ec4d6a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ Adding new methods is perfectly fine as it won't break current plugins depending
Under no circumstance is existing methods suppose to have a change to the variables in the methods. You can change anything inside the method.
* i.e. UUID cannot become Player in `getKeys`, You should create a new method and deprecate the old one.

If trying to expose internal hashmap's or arraylists using the API, It is best instead of directly returning the hashmap or arraylist. You return an unmodifiable version or clone them.
All internals should be accessed through proper means rather than just allowing anyone to cripple the plugin.
If trying to expose internal hashmap's or arraylists using the API, Return an unmodifiable version of the map/arraylists

0 comments on commit ec4d6a9

Please sign in to comment.