Commit Graph
100 Commits
Author SHA1 Message Date
Dico200 9c3d969695 Fixed signalstrength error and minor change 2015-10-31 15:52:03 +01:00
Dico200 b4f5a68e4e small addition to basecommands documentation 2015-10-20 18:10:56 +02:00
Dico200 ce4fa316d9 Added the signalstrength.py file. 2015-10-20 18:05:40 +02:00
Dico200 9119c3d150 Moved /signalstrength to its own file, added default configurability, added basecommands documentation, added can_build() to helpers 2015-10-20 18:03:05 +02:00
Dico200 2db8142b35 Small update to /signalstrength 2015-10-20 02:58:42 +02:00
Dico200 5e593e0f5c Merge branch 'dev' of https://github.com/RedstonerServer/redstoner-utils into dev 2015-10-20 01:02:16 +02:00
Dico200 0676c535ad Finished signal strength command 2015-10-20 01:01:53 +02:00
Dico200 a637954ef7 Merge branch 'dev' of https://github.com/RedstonerServer/redstoner-utils into dev 2015-10-11 23:28:18 +02:00
Dico200 e85f716dc5 /signalstrength progress 2015-10-11 23:27:20 +02:00
Dico200 05a74b416b /signalstrength progress 2015-10-11 23:25:12 +02:00
Dico200 920738bd65 Another fix -.- these single characters...
It's been too long since I committed properly
2015-09-19 02:25:58 +02:00
Dico200 12ea31cd02 fix in misc.py - ofc I forget to save 2015-09-19 02:24:39 +02:00
Dico200 4404674c29 Disabled vanishfix, preparing merge
I replaced /warn and /warnp commands with @simplecommand hook. they
happened to be missing the 'if' from the permission checks and this
takes care of some other things as well.

I added a module called vanish which will replace essentials vanish
which happens to be really buggy as you know.

I added a serversigns module but it is not added to main.py and thus it
will not cause problems!
2015-09-19 02:22:21 +02:00
Dico200 393d7f791d Small fix to make sure staff can always see other staff in vanish mode 2015-09-19 01:26:26 +02:00
Dico200 d5c9e2fae1 Added vanish module, a simple replacement for the essentials version
I tried to use underscores where ever I could ^^
2015-09-19 01:00:51 +02:00
Dico200 9bf7d626da Serversigns Replacement, accessible for everyone.
Untested. 🉑
2015-09-15 16:45:22 +02:00
Dico200 5f0d845ec0 Nemes's work on Snowbrawl 2015-06-14 17:02:42 +02:00
Dico200 40137cad4c This /up fix SHOULD WORK! 2015-06-06 12:13:18 +02:00
Dico200 35b1fe3a0f Well //up is gone again. Great. Undoing.. 2015-06-06 10:56:31 +02:00
Dico200 778fd0234e Fix /up
Tried a lot of shit but these 3 lines should do it.
2015-06-06 10:29:24 +02:00
Dico200 1b5f07f7aa Fix new attempt... :D 2015-06-03 01:26:27 +02:00
Dico200 dbeb0d53bb Another fix attempt for /up 2015-06-03 01:24:45 +02:00
Dico200 0ea2760bf4 Revert "why did //up disappear? Testing on dev server."
This reverts commit a6f5156ef4.
2015-06-03 01:18:18 +02:00
Dico200 a6f5156ef4 why did //up disappear? Testing on dev server. 2015-06-03 01:16:14 +02:00
Dico200 3cbb8dc9bd Prevent /up griefing, add /ackey, minor tweaks
Dunno why its posting 'changes' in main.py tho
2015-06-03 01:09:07 +02:00
Dico200 794f0470bf blockplacemods fix config types sharing storage obj 2015-05-18 23:34:00 +02:00
Dico200 fb3e4afe3c blockplacemods tweaks/fixes of returned messages 2015-05-18 23:32:57 +02:00
Dico200 5dba052fa9 Forgot to save this last check 2015-05-18 23:06:24 +02:00
Dico200 bd05374db0 blockplacemods update, basecommands fix
Added settings: piston, dropper, hopper
changes to the framework
made it so you can set the default contents for all slots in
furnaces/droppers as well as furnaces.
2015-05-18 23:05:54 +02:00
Dico200 057b404b03 Small change to open_json_file() 2015-05-18 23:00:54 +02:00
Dico200 dd1f0b8356 Steps towards even easier command handling.
See issue #4
2015-05-14 04:10:04 +02:00
Dico200 4599ae89e9 Fix this thing so that only 1 player has to sleep
untested
2015-05-14 03:32:34 +02:00
Dico200 6fc168eb63 Fixes, tweaks, changes 2015-05-14 02:46:54 +02:00
Dico200 83eb3a8885 Merge remote-tracking branch 'origin/dev' 2015-05-14 02:19:16 +02:00
Dico200 59816b58e2 Almost complete redo of blockplacemods, small fixes
I've redone most of blockplacemods its code. It is now MUCH easier to
expand in the future and I think the code is more elegant and stuff. It
all works the same as before, except the command is now /toggle
<setting>
I've merged the setting for /autotakewater and /autofillcauldron into
one setting named cauldron.
2015-05-14 02:16:33 +02:00
Dico200 0ef318d6b9 Removed a lot of shit from basecommands.py 2015-05-13 21:39:25 +02:00
Dico200 9f4d096a57 Cleanup misc.py and small fix, also in damnspam 2015-05-13 21:37:53 +02:00
Dico200 230e427f04 Fix BlockBreakEvent being called on lever switch 2015-05-13 21:37:23 +02:00
Dico200 88e0a298b5 Added a few untested things to misc.py 2015-05-13 21:06:26 +02:00
Dico200 7407ec0513 Merge remote-tracking branch 'origin/dev' 2015-05-08 13:47:23 +02:00
Dico200 6865e2c3b9 Revert "show network AS in /check"
This reverts commit 181c6ccfeb.
2015-05-05 16:50:55 +02:00
Dico200 eaf0f41746 Revert "use https for ipinfo.io"
This reverts commit 62569c7361.
2015-05-05 16:50:48 +02:00
Dico200 37dc80305f More blockplacemods
Trying to make it place an item (in this case 1 piece of redstone dust)
in a furnace. I know that it creates the ItemStack correctly, I know
that in this case .getInventory() returns an instance of
FurnaceInventory and I know that .update() is returning True meaning it
updated the blockstate successfully. However, the item is not appearing
in the furnace. Any idea why?
2015-05-01 21:46:24 +02:00
Dico200 ad9de19d5d right clicking empty cauldron fills it 2015-04-29 17:12:39 +02:00
Dico200 884e0a3491 Added perm check to interactevent im blockplacemods
fixes #19
2015-04-29 14:41:48 +02:00
Dico200 5e8c906bf0 Merge remote-tracking branch 'origin/dev' 2015-04-29 03:31:25 +02:00
Dico200 4e1398e514 Disable loginsecurity module 2015-04-29 03:31:01 +02:00
Dico200 3daa191d8b Remove adminnotes noperm notification 2015-04-29 03:30:00 +02:00
Dico200 9eda3ad0ff Merge remote-tracking branch 'origin/dev' 2015-04-29 03:28:17 +02:00
Dico200 1afaec2a08 Small misc cleanup 2015-04-29 03:27:52 +02:00
Dico200 c451b2247b Added blockplacemods module
Adds a few nifty features with per player customization:
- Placing a slab automatically turns it upside-down
- Placing a cauldron automatically fills it
- Right clicking a cauldron with empty hand or redstone dust lowers
water level
2015-04-29 03:27:37 +02:00
Dico200 1cac4c6ed5 Added /tempadd command: temporary group membership
Just a simpler way of writing /pex user <user> group add <group> *
604800
2015-04-28 00:08:33 +02:00
Dico200 487375dd07 Added loginsecurity module
Added to make an easily adjustible version of LoginSecurity.
LoginSecurity does not (seem to) support name changes since it retrieves
the UUID used from a byte[] of "OfflinePlayer:<username>" which means
the UUID changes when a player changes their name. This should fix
/rmpass. It uses BCrypt. I'll test this on the dev server (hoping bcrypt
is installed)
2015-04-17 00:10:21 +02:00
Dico200 5384190741 Adminnotes fix continued message used for next note
Also code cleanup
2015-04-16 18:35:48 +02:00
Dico200 ab1087f210 Adminnotes fix continued message used for next note
Also code cleanup
2015-04-16 18:33:09 +02:00
Dico200 2c1292015b Made lava not break redstone components in Creative
I tested thoroughly. I don't see how this will break other parts of the
plugin either.
2015-04-14 21:20:55 +02:00
Dico200 055a9073f4 Hotfix in /sudo 2015-04-13 18:38:16 +02:00
Dico200 85df528fc3 Added /rp list as alias for /rp open 2015-04-13 18:38:03 +02:00
Dico200 2c063d638f Tweaks in imout, primarily making player vanish 2015-04-13 18:16:40 +02:00
Dico200 211fb08265 Removed color support for /me for players w/o perms 2015-04-13 18:16:00 +02:00
Dico200 ce3b911b35 /pluginversions is broken, Fixed mail send colours.
I attempted to fix /pluginversions but ended up just commenting it out.
The problem is in retrieving the plugins where instead of object type
Plugin it returns "array.array"? I tried a whole bunch of things but I
didn't succeed to make it work.
2015-04-10 23:55:30 +02:00
Dico200 b232cbf5cf Small fix 2015-04-10 00:39:09 +02:00
Dico200 f3833a6733 Untested change to add pyeval possibility to args
so you do like, for example:
/pex user EVAL:server.getOfflinePlayer("Dico200").getUniqueId()

this could also be used in chat. I know its pretty useless but useful in
some cases.
2015-04-10 00:37:51 +02:00
Dico200 d85b96f875 Clean up misc.py, add space support for cg key 2015-04-10 00:13:06 +02:00
Dico200 9a0767676c Didn't upload this for some reason 2015-04-09 01:39:41 +02:00
Dico200 58eea64148 I love less-than-one line list creators! 2015-04-09 01:38:58 +02:00
Dico200 812e2c3aaf Changed version to 3.1.0 :D no reason 2015-04-09 01:25:52 +02:00
Dico200 9ddd523c58 Added player configurable chatgroup keys
The keys are stored in chatgroup_keys.json
2015-04-09 01:23:00 +02:00
Dico200 34b59e61fe Revert "Revert "Change to /modules... trying to make @command work.""
This reverts commit da756d69cc.
2015-04-08 22:34:44 +02:00
Dico200 da756d69cc Revert "Change to /modules... trying to make @command work."
This reverts commit 201c766119.
2015-04-08 22:32:54 +02:00
Dico200 201c766119 Change to /modules... trying to make @command work.
@command throws an error when it tries to access current_subs, which
supposedly didn't exist. current_subs stores all subcommands found when
defining the method which @command was added to. (These SHOULD be called
first)
2015-04-08 22:32:14 +02:00
Dico200 f7abc20ca1 Don't even bother. 2015-04-03 02:04:25 +02:00
Dico200 de43b0d0db Added (sub/main)command, removed abot error check
@command is untested.
2015-04-03 02:01:57 +02:00
Dico200 661e25dc67 Some tweaks and updates 2015-03-29 12:48:32 +02:00
Dico200 6590a8d30a Added cmd check to ABOT, commented out advancedcmd
advancedcmd doens't work atm, apparently
function.func_code is a thing but adding co_consts isn't an attribute of
that.

Tested abot, seems to work well.
2015-03-28 16:39:09 +01:00
Dico200 4cfa3a598f Tiny tweaks in basecommands.py 2015-03-26 16:48:54 +01:00
Dico200 75823ed042 Added basecommands.py
Contains @simplecommand and @basecommand
Slightly alterred simplecommand, made both display the command's
required permission when displaying help if the sender has the
permission "utils.showpermission".

Also a small tweak in misc.py's join listener.
2015-03-26 16:44:21 +01:00
Dico200 9855f62e7b Replaced /pyeval too, untested atm. 2015-03-25 00:55:13 +01:00
Dico200 75c9a86ba3 Replaced /sudo and /me with @simplecommand hook
Also improved simplecommand a little bit.
Don't ask me why it doesn't work in its own file as I have no clue, it
wasn't tracing the errors.
2015-03-25 00:38:56 +01:00
Dico200 d160bbd91a Revert "Moved simplecommand to its own module"
This reverts commit 669c2d0eb8.
2015-03-24 23:45:23 +01:00
Dico200 669c2d0eb8 Moved simplecommand to its own module
The module is named simplecommand.py (wow, didn't expect that!)

And I also cleaned it up a little bit, and tried to make clear how the
fuck it works. This shit is weird.
2015-03-23 23:24:10 +01:00
Dico200 7b8242697a CommandManager works! (Renamed to simplecommand)
See at the bottom of helpers.py!
I'm quite excited for this addition <3
2015-03-23 23:03:11 +01:00
Dico200 f1b2c61411 Fix reports.py. Oops. 2015-03-23 22:04:53 +01:00
Dico200 5f2ee6add9 Added commandmanager module. ALSO UNTESTED!
Will test now.
2015-03-23 21:30:44 +01:00
Dico200 f6de0a6c78 Added synchronizeranks. Untested! 2015-03-23 20:08:38 +01:00
Dico200 8a95dc65f6 Quick fix 2015-03-20 01:28:02 +01:00
Dico200 98774e8f84 Report code cleanup and /rp reopen
These changes are not yet tested!!!
2015-03-20 01:25:35 +01:00
Dico200 71c0f8782c Removed redundant code check and small tweak 2015-03-20 00:07:47 +01:00
Dico200 3bdb56e8a2 Changed reports module fixes #10
Write /rp ingame for new commands n stuff.
2015-03-20 00:06:47 +01:00
Dico200 1750c82208 Changed all CommandExecutor arguments
Added arguments command and label to all command executor functions,
hopefully for massive performance increase.

This is due to the following mess in PythonLoader:
``` Java
@Override
public boolean onCommand(CommandSender sender, Command command, String
label, String[] args) {
boolean result;
if (argcount == -1) {
try {
result = call(4, sender, command, label, args);
argcount = 4;
} catch (PyException e) {
//this could goof up someone ... they'll probably yell at us and
eventually read this code ... fuck them
if (e.type == Py.TypeError && (e.value.toString().endsWith("takes
exactly 3 arguments (4 given)") || e.value.toString().endsWith("takes
exactly 4 arguments (5 given)"))) {
result = call(3, sender, command, label, args);
argcount = 3;
} else if (e.type == Py.TypeError && (e.value.toString().endsWith("takes
exactly 2 arguments (4 given)") || e.value.toString().endsWith("takes
exactly 3 arguments (5 given)"))) {
result = call(2, sender, command, label, args);
argcount = 2;
} else {
throw e;
}
}
} else {
result = call(argcount, sender, command, label, args);
}
return result;
}
```

Note: Still WIP on reports - I'm working on making it keep solved
reports to fix issue 10
2015-03-19 23:51:33 +01:00
Dico200 d993cc223a Changed AC from toggle or , fixes #16
This solution to log any AC isn't very optimised as it will check for
permission twice. Any fix for this?

Anyways it now runs /ac <msg> from the player every time.
2015-03-19 22:02:07 +01:00
Dico200 40fa9c0692 simplified /me in misc.py
Replaced online user iteration with broadcast method
2015-03-19 21:51:13 +01:00
Dico200 5d23fe490b Remove annoying Damnspam plugin header
I hate plugin_header, can we maybe make it return a string which we
append the message to instead? ._.
or create like plugin_message(String pluginname, Player recipient,
String message)
2015-03-19 20:25:47 +01:00
Dico200 9476a1b0b7 Remove redundant try/catch 2015-03-18 22:26:54 +01:00
Dico200 194958f034 me cmd appearance hotfix (made new cmd) fixes #15 2015-03-18 22:25:58 +01:00
Dico200 55ac6c0977 Change /sudo command fixes #14 2015-03-18 21:09:49 +01:00
Dico200 39654bf4a7 Re-enabled AdminNotes module 2015-03-17 00:56:50 +01:00
Dico200 f1856d3243 Disable adminnotes, fix stuff 2015-03-15 04:17:12 +01:00
Dico200 5ef17713a4 Change runas() in helpers to use player.chat 2015-03-15 04:03:40 +01:00
Dico200 96b4cb2e3f Disabled snowbrawl 2015-03-15 04:00:51 +01:00